package Work;

import java.io.*;

public class oos {
    public static void main(String[] args) throws IOException {
        String name = "等等";
        int age = 34;
        String gender = "男";
        String[] otherInfo = {"是一个学生", "喜欢赖叽", "贼能赖叽"};
        student1 dd = new student1(name, age, gender, otherInfo);
        System.out.println(dd);
        FileOutputStream oo = new FileOutputStream("student1.txt");
        ObjectOutputStream aa = new ObjectOutputStream(oo);
        aa.writeObject(dd);
        System.out.println("ok");
        aa.close();


    }
}
